﻿@model IEnumerable<Admin.Models.ApplicationUser>

@{
    ViewBag.Title = "用户管理";
}

<div class="widget-body">
    <div class="table-toolbar">
        <a class="btn btn-default" id="editabledatatable_new" href="@Url.Action("Create", "UsersAdmin")">
            新增用户
        </a>
        
    </div>
    <table class="table table-striped table-hover table-bordered" id="editabledatatable">
        <thead>
            <tr role="row">
                <th>
                    Emai
                </th>
                <th>
                    用户名
                </th>
                <th>

                </th>
            </tr>
        </thead>

        <tbody>
        @foreach (var item in Model)
        {
            <tr>
                <td>@Html.DisplayFor(modelItem => item.Email)</td>
                <td class="center ">@Html.DisplayFor(modelItem => item.UserName)</td>
                <td>
                    <a href="@Url.Action("Edit", "UsersAdmin", new {id = item.Id})" class="btn btn-info btn-xs edit"><i class="fa fa-edit"></i>编辑 </a>
                    <a href="@Url.Action("Delete", "UsersAdmin", new {id = item.Id})" class="btn btn-danger btn-xs delete"><i class="fa fa-trash-o"></i> 删除</a>
                </td>
            </tr>
        }
        </tbody>
    </table>
</div>

<script>
    $(".sidebar-menu li").removeClass("active");
    $("#user").addClass("active");
</script>
